package com.echo.fm.admin.auto;

import java.util.List;

import com.echo.fm.admin.auto.model.Admin;
import com.echo.util.ErrorException;

public interface IAdminPersistence {

	Admin searchAdminUserByPhone(String phone) throws ErrorException;

	boolean checkPassword(String id, String password) throws ErrorException;

	void registAdminUser(Admin admin) throws ErrorException;

	void updateUserById(Admin admin) throws ErrorException;

	void deleteUser(Admin admin) throws ErrorException;
	
	public List<Admin> searchAdminList(String phone,String userName,Integer max,Integer firstNumber) throws ErrorException;

}
